TfrxDBLookupComboBox

This element is used for selecting a value in the directory table. It substitutes the directory identifier of the selected value.

The element has the following properties:

Property Description
DataSet Data source, which a control is connected to.
ListField Name of the DB field, which will be displayed in a control.
KeyField Name of the DB key field, which will identify the selected record.
KeyValue Value of the DB key field, which was selected in the list.
Text Value of the DB field displayed in the list.

For connecting of a control to the directory, you should fill values of the three properties: "DataSet," "ListField," and "KeyField." The selected value is available via either the "Text" or "KeyValue" properties. You can set the initial position of a cursor in the list with the help of the "KeyValue."